package com.kymatrix.mpo.plus.bpm.server.model.form.group;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Set;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import lombok.Data;
import lombok.experimental.Accessors;

@ApiModel(value = "管理后台 - 用户组创建/修改 Request")
@Data
@Accessors(chain=true)
public class UpdateBpmUserGroupReq {

    @ApiModelProperty(value = "id", example = "1024")
    @NotEmpty(message = "id不能为空")
    private String id;

    @ApiModelProperty(value = "组名", example = "zhangsan")
    @NotNull(message = "组名不能为空")
    private String name;

    @ApiModelProperty(value = "描述", example = "zhangsan源码")
    private String description;

    @ApiModelProperty(value = "成员编号数组", example = "1,2,3")
    @NotNull(message = "成员编号数组不能为空")
    private Set<String> userIds;

    @ApiModelProperty(value = "状态 EnableType", example = "1")
    @NotNull(message = "状态不能为空")
    private String status;

}
